<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<select id="${param.id }" class="${param.classStyle }" >
</select>
<script type="text/javascript">
	$("#${param.id }").ready(function(){
		$.ajax({
			type:'POST',
			url:'${ctx}/workstation/findJczByBmbh.htm',
			dataType:'json',
			success:function(data, textStatus, jqXHR){
				$("#${param.id }").append("<option value=\"\">--请选择执法服务站--</option>");
				$.each(data,function(i,node){
					var selectValue = "${param.selectValue}";
					if(selectValue == node.jczbh){
						$("#${param.id }").append("<option value=\""+node.jczbh+"\" selected=\"selected\"  >"+node.jczmc+"</option>");
					}else{
						$("#${param.id }").append("<option value=\""+node.jczbh+"\"  >"+node.jczmc+"</option>");
					}
				});
			},
			error:function(XMLHttpRequest, textStatus, errorThrown){
				alert("查询执法服务站数据失败！");
			}
		});
	});
</script>